package cn.gson.fengboot.controller;

import cn.gson.fengboot.model.pojos.Ljianche;
import cn.gson.fengboot.model.pojos.Lkhqr;
import cn.gson.fengboot.model.service.LkhqrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/vue")
public class LkhqrController {
    @Autowired
    LkhqrService lkhqrService;


    //查询
    @RequestMapping("/khqrcx")
    @ResponseBody
    public List<Lkhqr> khqrcx(Integer qrbid){
        return lkhqrService.khqrcx(qrbid);
    }

    //新增
    @RequestMapping("/addkhqr")
    @ResponseBody
    public  void addkhqr(@RequestBody Lkhqr lkhqr){
        lkhqrService.addkhqr(lkhqr);
    }
}
